package hu.dynamicwebshop.gui;

import com.vaadin.ui.GridLayout;

/**
 *
 * @author Szecskó Zoltán <zoltan.szecsko@gmail.com>
 */
public class MainLayer extends GridLayout {

    private static final long serialVersionUID = 1L;
    private String width = "900";
    private int colNum = 4;
    private int rowNum = 4;

    public MainLayer(HeaderLayer hL, MenuLayer mL, UserLayer uL,
            CategoryLayer caL, ContentLayer coL) {
        setColumns(colNum);
        setRows(rowNum);
        setWidth(width);

        this.addComponent(hL, 0, 0, 3, 0);
        this.addComponent(mL, 0, 1, 3, 1);
        this.addComponent(uL, 0, 2, 3, 2);
        this.addComponent(caL, 0, 3, 0, 3);
        this.addComponent(coL, 1, 3, 3, 3);
    }
}
